package com.luozongyao.sysInform.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author luozongyao
 * @since 2021-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Inform对象", description="")
public class Inform implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "inform_id", type = IdType.AUTO)
    private Integer informId;

    @ApiModelProperty(value = "通知标题")
    private String informTitle;

    @ApiModelProperty(value = "通知内容是Html")
    private String informContent;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "被通知的用户id")
    private Integer informedUserId;

    @ApiModelProperty(value = "消息是否已读")
    private Boolean isRead;

    private Boolean isDelete;


}
